package top.wfzzq.tds;

//泛型类T是類型定義占位符； 在創建類的時候指定
public class MyNode<T> {
	// 汎型類型T確定類型
	private T data;
	private MyNode<T> next;

	public MyNode() {

	}

	public MyNode(T data) {
		this.data = data;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	public MyNode<T> getNext() {
		return next;
	}

	public void setNext(MyNode<T> next) {
		this.next = next;
	}

}
